from math import  *
import unittest


def bascara(a, b, c):
    if not (type(a) == int and type(b) == int and type(c) == int):
        return "ingrese un valor correcto"
    
    X = (b**2)-(4*a*c)

    if X < 0:
        return "Solucion en numeros complejos"

    elif X == 0:
        X1 = (-b) / (2*a)
        return X1

    else:
        try:
            X1 = (-b + sqrt(X)) / (2*a)
            X2 = (-b - sqrt(X)) / (2*a)
        except ZeroDivisionError:
            return "division por 0"

        return [X1, X2]
    
    

class TestBascara(unittest.TestCase):
    
    def test(self):
        self.assertEqual(bascara(5,4,0),[0,-0.8])
        self.assertEqual(bascara(8,0,4),"Solucion en numeros complejos")
        self.assertEqual(bascara(0,-5,-4),"division por 0")
        self.assertEqual(bascara(3,'1','dos'),"ingrese un valor correcto")